package com.power.sifa.correction.api;

import com.plf.common.domain.ResponseDTO;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;
import com.power.sifa.correction.model.Cre_record_ga;
import com.power.sifa.correction.model.pageInfo.Cre_record_gaPageInfo;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 *  公安推送记录 Feign
 */
public interface ICre_record_gaFeign {

    /**
     * 公安推送记录分页列表
     */
    @PostMapping("/cre_record_ga/list")
    ResponseDTO list(@RequestBody Cre_record_gaPageInfo cre_record_gaPageInfo);

    /**
    * 查看公安推送记录
    */
    @GetMapping("/cre_record_ga/view")
    ResponseDTO view(@RequestParam("id") Integer id);

    /**
    * 删除公安推送记录
    */
    @PostMapping("/cre_record_ga/delete")
    ResponseDTO delete(@RequestParam("id") Integer id);

    ///**
    // * 查看公安推送记录 复合主键使用
    // */
    //@PostMapping("/cre_record_ga/viewByPK")
    //ResponseDTO viewByPK(@RequestBody Cre_record_ga.Cre_record_gaPK pk);

    /**
     * 修改或保存公安推送记录
     */
    @PostMapping("/cre_record_ga/save")
    ResponseDTO save(@RequestBody Cre_record_ga  cre_record_ga);

    ///**
    // * 删除公安推送记录 复合主键使用
    // */
    //@PostMapping("/cre_record_ga/deleteByPK")
    //ResponseDTO deleteByPK(@RequestBody Cre_record_ga.Cre_record_gaPK pk);
    
    /**
     * 批量删除公安推送记录
     */
    @PostMapping("/cre_record_ga/batchDel")
    ResponseDTO batchDel(@RequestParam("ids") String ids);
    
     /**
     * 导出excel
     */
    @PostMapping("/cre_record_ga/output")
    void output(HttpServletResponse response, @RequestBody Cre_record_gaPageInfo cre_record_gaPageInfo);
        
     /**
     * 导出excel模板
     */
    @PostMapping("/cre_record_ga/exportExcelTemplate")
    void exportExcelTemplate(HttpServletResponse response);
    
     /**
     *	导入excel
     */
    @PostMapping("/cre_record_ga/importExcel")
    ResponseDTO importExcel(@RequestBody MultipartFile file) throws IOException ;

    /**
     * 查询最近公安记录
     * @return
     */
    @GetMapping("/cre_record_ga/recentRecordGa")
    ResponseDTO recentRecordGa(@RequestParam("perId") String perId);
    
}
